import service from '@/utils/request'
/**
 * 个人中心-投诉 帮助 学习 反馈
 */
const UserApi = {
      getUserRelation: function(data) {
        return service.get('user/relation', {params: data })
      },

      addUserAdvice: function(data) {
        return service.post('user/advice', data)
      },
      editUserAdvice(data) {
        return service.put('user/advice', data)
      },
      deleteUserAdvice(data) {
          return service.delete('user/advice', {params: data })
      },
      listUserAdvice(data) {
          return service.get('user/listAdvice', {params: data })
      },
      getUserAdviceInfo(data) {
          return service.get('user/advice', {params: data })
      },

      addCompanyAdvice: function(data) {
          return service.post('companyAdvice', data)
      },
      editCompanyAdvice: function(data) {
          // 回复公司内部建议反馈
          return service.put('companyAdvice', data)
      },
      listCompanyAdvice: function(data) {
          return service.get('companyAdvice/list', {params: data })
      },


}

export default UserApi
